<?php
class Util_Date
{
    public static function days ($day1, $day2)
    {
        $t1 = strtotime($day1);
        $t2 = strtotime($day2);

        return (int) (abs($t1 - $t2) / 86400 ) + 1;
    }
}
